package com.longxiao.vo;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.longxiao.entity.Classroom;


public class ClassroomVo {
	
	private Integer id;

    private String tchId;

    private String startTime;

    private String endTime;

    private Integer stuCount;

    private Byte status;

    private Integer courseId;

    private String level;

    private Integer chapterId;

    private String chapterUrl;

	public ClassroomVo(Classroom classroom) {
		super();
		this.id = classroom.getId();
		this.tchId = classroom.getTchId();
		this.startTime = dateFormat(classroom.getStartTime());
		this.endTime = dateFormat(classroom.getEndTime());
		this.stuCount = classroom.getStuCount();
		this.status = classroom.getStatus();
		this.courseId = classroom.getCourseId();
		this.level = classroom.getLevel();
		this.chapterId = classroom.getChapterId();
		this.chapterUrl = classroom.getChapterUrl();
	}
	
    public void setId(Integer id) {
		this.id = id;
	}

	public void setTchId(String tchId) {
		this.tchId = tchId;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public void setStuCount(Integer stuCount) {
		this.stuCount = stuCount;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public void setChapterId(Integer chapterId) {
		this.chapterId = chapterId;
	}

	public void setChapterUrl(String chapterUrl) {
		this.chapterUrl = chapterUrl;
	}

	public Integer getId() {
		return id;
	}

	public String getTchId() {
		return tchId;
	}

	public String getStartTime() {
		return startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public Integer getStuCount() {
		return stuCount;
	}



	public Byte getStatus() {
		return status;
	}



	public Integer getCourseId() {
		return courseId;
	}



	public String getLevel() {
		return level;
	}



	public Integer getChapterId() {
		return chapterId;
	}



	public String getChapterUrl() {
		return chapterUrl;
	}



	private String dateFormat(Date date) {
    	SimpleDateFormat format = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
    	return format.format(date);
    }
}
